length of a string c#

44

C# string length -

string a = "One example";
Console.WriteLine("LENGTH: " + a.Length);
// This code outputs 11

Comments

Submit
0 Comments